package com.cie2.map.entities;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.apache.tapestry5.beaneditor.NonVisual;
import org.apache.tapestry5.beaneditor.Validate;


/**
 * Map is an object that choose from all the of the available area. Which one will be included in this map
 * 
 * @author abangkis
 *
 */
public class MMap {

	Long id;
	
	String center;
	
	String name;
	
	String desc;
	
	User user;

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @NonVisual	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Validate("required")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Validate("required")
	public String getCenter() {
		return center;
	}

	public void setCenter(String center) {
		this.center = center;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	
}
